package org.ruoyi.aibox.mapper;

import org.ruoyi.aibox.domain.DocAuditResultDetail;
import org.ruoyi.aibox.domain.vo.DocAuditResultDetailVo;
import org.ruoyi.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 文档审核结果明细Mapper接口
 *
 * @author xpeter
 * @date 2025-04-29
 */
public interface DocAuditResultDetailMapper extends BaseMapperPlus<DocAuditResultDetail, DocAuditResultDetailVo> {

    /**
     * 查询文档审核结果明细列表
     */
    List<DocAuditResultDetail> selectDocAuditResultDetailList(DocAuditResultDetail docAuditResultDetail);

    /**
     * 根据结果ID查询明细
     */
    List<DocAuditResultDetail> selectDocAuditResultDetailByResultId(Long resultId);

    /**
     * 更新审核建议
     */
    int updateAuditAdvice(@Param("detailId") Long detailId, @Param("auditAdvice") String auditAdvice);

    /**
     * 批量更新审核结果明细
     */
    int batchUpdateDetails(@Param("details") List<DocAuditResultDetail> details);
    
    /**
     * 批量更新文档审核结果明细
     */
    int updateBatchDocAuditResultDetail(@Param("list") List<DocAuditResultDetail> list);
    
    /**
     * 批量插入文档审核结果明细
     */
    int insertBatch(@Param("list") List<DocAuditResultDetail> list);
}
